package com.pda.common.database;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Transient;

@Entity(
        indexes = {
                @Index(value = "pid", unique = true)
        }
)
//产品
public class ProductInfo {
    @Id(autoincrement = true)
    private Long id;
    private String pid;
    private String code;
    private String name;
    private int tuoCaseNum;
    private int caseBoxNums;
    @Transient
    private boolean flag = false;
@Generated(hash = 63641655)
public ProductInfo(Long id, String pid, String code, String name,
        int tuoCaseNum, int caseBoxNums) {
    this.id = id;
    this.pid = pid;
    this.code = code;
    this.name = name;
    this.tuoCaseNum = tuoCaseNum;
    this.caseBoxNums = caseBoxNums;
}
@Generated(hash = 49329718)
public ProductInfo() {
}
public Long getId() {
    return this.id;
}
public void setId(Long id) {
    this.id = id;
}
public String getPid() {
    return this.pid;
}
public void setPid(String pid) {
    this.pid = pid;
}
public String getCode() {
    return this.code;
}
public void setCode(String code) {
    this.code = code;
}
public String getName() {
    return this.name;
}
public void setName(String name) {
    this.name = name;
}
public int getTuoCaseNum() {
    return this.tuoCaseNum;
}
public void setTuoCaseNum(int tuoCaseNum) {
    this.tuoCaseNum = tuoCaseNum;
}
public int getCaseBoxNums() {
    return this.caseBoxNums;
}
public void setCaseBoxNums(int caseBoxNums) {
    this.caseBoxNums = caseBoxNums;
}
}


